<?php session_start();
function isLoggedIn()
{
    if(isset($_SESSION['id']))
        return true;
}

function isAdminLoggedIn()
{
    if(isset($_SESSION['id']) && $_SESSION['admin'] == 1)
        return true;
}
?>
